package com.biubiushop.service;

import com.alibaba.fastjson.JSONObject;
import com.biubiushop.entity.User;
import com.biubiushop.vo.UserLoginVO;

public interface IUserService {

	/**
	 * 小程序授权登录
	 * 
	 * @return
	 * @throws Exception
	 */
	JSONObject wxMiniAuthorization(String code) throws Exception;

	UserLoginVO wxMiniLogin(String openId, String phone, String code, String nickName, Integer sex) throws Exception;

	User appLogin(String phone, String password) throws Exception;

    String getRegisterSms(String phone) throws Exception;

	User appSmsLogin(String phone, String code) throws Exception;
}
